package com.example.jsd2205.vx.emos.config;
import com.rabbitmq.client.ConnectionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/*
 * @author admin 兰
 * rabbitMQ配置类
 * */
@Configuration
public class RabbitMQConfig {
    @Bean
    public ConnectionFactory getFactory(){
        ConnectionFactory factory=new ConnectionFactory();
        factory.setHost("192.168.1.19");
        //linux主机IP地址
        factory.setPort(5672);
        //rabbitMQ端口号
        return factory;
    }
}
